#ifndef DBHELPER_H
#define DBHELPER_H

#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include <QVariant>
#include <QSqlRecord>
#include <qdebug.h>
#include <QThread>

class dbHelper
{
public:
    static QSqlDatabase openConnection(const QString &connectionName = QString());
    static void closeConnection(const QString &connectionName = QString());

private:
    static QSqlDatabase createConnection(const QString &connectionName); // 创建数据库连接
};

#endif // DBHELPER_H
